<?php

/**
 * Botenmarkt Front-end
 * 
 * Domain Objects
 *
 * @category    botenmarkt_front
 * @package     library
 * @subpackage  domainObjects
 * 
 * @author      valerii lazarevych <valeriy.fremar@gmail.com>
 * @copyright   Copyright(c) Fremar ltd.
 * 
 * @license     default
 * @version     4:30:54 PM | Feb 29, 2012
 */

/**
 * Provinces domain object class
 * 
 * Reflect Netherlands province
 */
class Provinces_domainObject     extends domainObject
{
    /**
     * Province name
     * 
     * @var string $name
     */
    public $name        =       null;
    
    /**
     * Province code name
     * 
     * @var string(2) $acronim
     */
    public $acronim     =       null;
    
    /**
     * Get province name
     * 
     * @return string
     */
    public function provinceName()
    {
        return $this->name;
    }
    
    /**
     * Get province code name
     * 
     * @return string(2)
     */
    public function provinceCode()
    {
        return  $this->acronim;        
    }
    
    /**
     * Get object db id number
     * Use in ORM mapping procedure
     * 
     * @return int 
     */
    public function province()
    {
        return $this->getId();
    }
    
}

